/* 
 * File:   FractalPrinterNormal.cpp
 * Author: amouro-m
 * 
 * Created on 23 mai 2010, 09:38
 */

#include "FractalPrinterNormal.h"

FractalPrinterNormal::FractalPrinterNormal(SDL_Surface* area):
FractalPrinter(area)
{}

FractalPrinterNormal::FractalPrinterNormal(SDL_Surface* area, Fractal* fractal):
FractalPrinter(area, fractal)
{}

FractalPrinterNormal::~FractalPrinterNormal() {}

unsigned int
FractalPrinterNormal::coordX(double x) const
{
    return (x - _fractal->_xmin) * _coefx_to_area;
}

unsigned int
FractalPrinterNormal::coordY(double y) const
{
    return (y - _fractal->_ymin) * _coefy_to_area;
}
